package com.cqc.jdk8.Jlang;

import org.junit.Test;

/**
 * @author cui
 * @date 2025/6/15 17:35
 * @description
 **/
public class RuntimeTest {

    @Test
    public void f1() throws Exception {
        Runtime runtime = Runtime.getRuntime();
        //CPU线程数
        int availableProcessors = runtime.availableProcessors();
        System.out.println(availableProcessors);
    }
}
